import Vue from 'vue'
import { USER_INFO } from "@/store/mutation-types"
const getters = {
  token: state => state.user.token,
  userId: state => state.user.info.id,
  avatar: state => {state.user.avatar = Vue.ls.get(USER_INFO).avatar; return state.user.avatar},
  username: state => state.user.username,
  nickname: state => {state.user.realname = Vue.ls.get(USER_INFO).realname; return state.user.realname},
}

export default getters
